// pages/personal/personal.js
let apps = getApp()

Page({
  /**
   * 页面的初始数据
   */
  data: {
    userInfo: {},
    hasUserInfo: false,
    gstoreQrcodeImg: '../../images/gimages/gstore_qrcode_img.png',
    gtablist: [
      {
        icon: 'icon-daifukuan',
        title: '待付款',
        skipurl: ''
      },
      {
        icon: 'icon-daifahuo',
        title: '待发货',
        skipurl: ''
      },
      {
        icon: 'icon-icon-test',
        title: '待收货',
        skipurl: ''
      },
      {
        icon: 'icon-pingjia',
        title: '待评价',
        skipurl: ''
      },
      {
        icon: 'icon-tubiaolunkuo-',
        title: '售后订单',
        skipurl: '/pages/orderaftersales/orderaftersales'
      }
    ],
    gnavlist: [
      {
        icon: 'chengweituanchang',
        title: '申请团长',
        skipurl: '../apply/apply'
      },
      {
        icon: 'hongbao',
        title: '申请团长',
        skipurl: '../apply/apply'
      },
      {
        icon: 'hongbao',
        title: '优惠卷',
        skipurl: 'pages/gdiscounts/gdiscounts'
      },
      {
        icon: 'gouwuche',
        title: '购物车',
        skipurl: 'pages/shoppingCart/shoppingCart'
      },
      {
        icon: 'erweima2',
        title: '到店付',
        skipurl: ''
      },
      {
        icon: 'liaotian',
        title: '联系客服',
        skipurl: ''
      },
      {
        icon: 'meiriqiandao',
        title: '签到',
        skipurl: ''
      }
    ]
  },
  address(e){
    console.log(1)
    wx.navigateTo({
      url:'/pages/myaddress/myaddress'
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {


  },
  go: function () {
    console.log('11111')
    wx.navigateTo({
      url: '/pages/gpersonaldetails/gpersonaldetails'
    })
  },
  goBalance: function () {
    wx.navigateTo({
      url:"../balance/balance"
    })
  },
  goWelfare: function () {

     wx.navigateTo({
      url:"../welfare/welfare"
    })
  },
    order(){
        wx.navigateTo({
            url: '../orderCenter/orderCenter'
        })
      console.log('我的订单')
    },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    this.setData({
      userInfo:apps.globalData.userInfo
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  },
  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  },
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },
  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },
  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})
